package com.abcdefg.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.cloud.context.config.annotation.RefreshScope;


//@RequestMapping("/config")
//@RefreshScope
//@RestController
//public class NacosController {
//    //    @Value("${nacos.config}")
////    private String config;
//    @Value("${nacos.config}")
//    private String config;
//
//    @RequestMapping("/get")
//    public String get() {
//        return "获取的nacos.config:" + config;
//    }
//
////    @Value("${useLocalCache:false}")
////    private boolean useLocalCache;
////
////    /**
////     * http://localhost:8080/config/get
////     */
////    @RequestMapping("/get")
////    public boolean get() {
////        return useLocalCache;
////    }
//}
